package cn.kgc.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "resume_work_exp")
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@SuppressWarnings("all")
public class ResumeWorkExp extends Model<ResumeWorkExp> implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 谁的工作经验，用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 属于哪份简历id
     */
    @TableField(value = "resume_id")
    private String resumeId;

    /**
     * 就职公司名称
     */
    @TableField(value = "company_name")
    private String companyName;

    /**
     * 行业
     */
    @TableField(value = "industry")
    private String industry;

    /**
     * 在职时间-开始
     */
    @TableField(value = "begin_date")
    private String beginDate;

    /**
     * 在职时间-结束
     */
    @TableField(value = "end_date")
    private String endDate;

    /**
     * 职位名称
     */
    @TableField(value = "position")
    private String position;

    /**
     * 所在部门名称
     */
    @TableField(value = "department")
    private String department;

    /**
     * 工作内容、业绩、职责等
     */
    @TableField(value = "content")
    private String content;

    /**
     * 工作内容、业绩、职责等
     */
    @TableField(value = "content_html")
    private String contentHtml;

    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;


}
